package org.itheima.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface LogsMapper {


    @Insert("insert into logs(user_id,operate,time) values (#{user_id},#{operate},now())")
    void insertLogs(int user_id, String operate);


    @Select("select * from logs")
    List<Map<String,Object>> ViewTheLogs();

}
